package top.dudu.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import top.dudu.entity.ProductInfo;

import java.util.List;

/**
 * @author 嘟嘟
 * @date 2020-7-17 , 0017 9:13
 */
public interface ProductInfoService {

    ProductInfo findOne(String infoId);

    /**
     * 查询在架商品
     * @return
     */
    List<ProductInfo> findUpAll();

    Page<ProductInfo> findAll(Pageable pageable);

    ProductInfo save(ProductInfo productInfo);

}
